﻿namespace DataModel
{
    public class Box
    {
        private double x;

        private double y;

        private double z;

        private double carX, carY, carZ;

        private double pitchAngel, headingAngel;

        private long bTime;

        public Box()
        {

        }
        public Box(double x, double y, double z)
        {
            this.x = x;
            this.y = y;
            this.z = z;
        }
        public Box(double x, double y, double z, long time)
        {
            this.x = x;
            this.y = y;
            this.z = z;
            this.bTime = DateTimeHelper.CurrentUnixTimeMillis();
        }
        public Box(double x, double y, double z, double carX, double carY, double carZ)
        {
            this.x = x;
            this.y = y;
            this.z = z;
            this.carX = carX;
            this.carY = carY;
            this.carZ = carZ;
            this.bTime = DateTimeHelper.CurrentUnixTimeMillis(); ;
        }
        public Box(double x, double y, double z, double carX, double carY, double carZ, double headingAngel, double pitchAngel)
        {
            this.x = x;
            this.y = y;
            this.z = z;
            this.carX = carX;
            this.carY = carY;
            this.carZ = carZ;
            this.headingAngel = headingAngel;
            this.pitchAngel = pitchAngel;
            this.bTime = DateTimeHelper.CurrentUnixTimeMillis(); ;
        }
        public virtual double X
        {
            get
            {
                return x;
            }
            set
            {
                this.x = value;
            }
        }


        public virtual double Y
        {
            get
            {
                return y;
            }
            set
            {
                this.y = value;
            }
        }


        public virtual double Z
        {
            get
            {
                return z;
            }
            set
            {
                this.z = value;
            }
        }

        public virtual long getbTime()
        {
            return bTime;
        }
        public virtual void setbTime(long bTime)
        {
            this.bTime = bTime;
        }
        public virtual double CarX
        {
            get
            {
                return carX;
            }
            set
            {
                this.carX = value;
            }
        }
        public virtual double CarY
        {
            get
            {
                return carY;
            }
            set
            {
                this.carY = value;
            }
        }
        public virtual double CarZ
        {
            get
            {
                return carZ;
            }
            set
            {
                this.carZ = value;
            }
        }
        public virtual double PitchAngel
        {
            get
            {
                return pitchAngel;
            }
            set
            {
                this.pitchAngel = value;
            }
        }
        public virtual double HeadingAngel
        {
            get
            {
                return headingAngel;
            }
            set
            {
                this.headingAngel = value;
            }
        }
    }
}
